#pragma once

class GameObject
{
	public:
	int x;
	int y;
	char sprite;
	bool score;
	
	GameObject(char newSprite, int newX, int newY)
	{
		sprite=newSprite;
		x=newX;
		y=newY;
	}
	GameObject()
	{
		x=(rand() % 60) + 1;
		y=(rand() % 21 )+ 1;
		sprite=1;
	}
	void setX(int newX)
	{
		x=newX;
	}
	int getX()
	{
	return x;
	}
	void setY(int newY)
	{
		y=newY;
	}
	int getY()
	{
	return y;
	}
	char getSprite()
	{
		return sprite;
	}
	void destroy()
	{
		score=true;
		//sprite=' ';
	}

};